import request from '@/utils/request'

// 查询住户列表
export function listHouseholdB(query) {
  return request({
    url: '/householdA/householdB/list',
    method: 'get',
    params: query
  })
}

// 查询住户详细
export function getHouseholdB(id) {
  return request({
    url: '/householdA/householdB/' + id,
    method: 'get'
  })
}

// 新增住户
export function addHouseholdB(data) {
  return request({
    url: '/householdA/householdB',
    method: 'post',
    data: data
  })
}

// 修改住户
export function updateHouseholdB(data) {
  return request({
    url: '/householdA/householdB',
    method: 'put',
    data: data
  })
}

// 删除住户
export function delHouseholdB(id) {
  return request({
    url: '/householdA/householdB/' + id,
    method: 'delete'
  })
}
